<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import= "java.util.List"%>
<%@ page import= "vo.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900" rel="stylesheet" />
<link href="default.css" rel="stylesheet" type="text/css" media="all" />
<link href="fonts.css" rel="stylesheet" type="text/css" media="all" />
<title>Portal de Compras</title>
</head>

<body>x	
<div id="wrapper">
<jsp:include page="/MenuPrincipal.jsp" 	
   flush="true| false" />
			<div id="page" class="container">
	<form method="get" action="ListarVentas"><input
	type="hidden" name="accion" value="iniciar" />
	
	<table cellpadding="5" border="" align="center">
	<tr>
		<td colspan="5"><b>Ordenes</b></td>
	</tr>
	<tr>
		<td><b>Id</b></td>
		<td><b>Fecha</b></td>
		<td><b>Precio Total $</b></td>
		<td><b>Estado</b></td>
	</tr>
	
<!-- EJEMPLO
	<tr>
		<td>3</td>
		<td>2013-11-09 13:53:05</td>
		<td>525.32</td>
		<td>Entregado</td>
	</tr>
	<tr>
		<td>6</td>
		<td>2013-11-09 15:00:01</td>
		<td>20.10</td>
		<td>Entregado</td>
	</tr>
	<tr>
		<td>11</td>
		<td>2013-11-10 11:34:54</td>
		<td>5.10</td>
		<td>En Distribucion</td>
	</tr>
-->

<%	 	
	List<VentaVO> ventas = (List<VentaVO>)request.getAttribute("ventas");
if (ventas != null){
	for (VentaVO v:ventas){
%>
	<tr>
		<td><%=v.getNumero()%></td>
		<td><%=v.getFecha()%></td>
		<td><%=v.getPrecioCarrito()%></td>
		<td><%=v.getEstado()%></td>
		
	</tr>
<%  }}%>

</table>
</FORM>
</div>
</div>
</body>
</html>